package com.tt.hotkey;

import com.tt.hotkey.contract.IdGeneratorOptions;
import com.tt.hotkey.idgen.YitIdHelper;

public class Demo {
    public static void main(String[] args) {
        IdGeneratorOptions options = new IdGeneratorOptions((short) 1);
        options.SeqBitLength = 10;
        YitIdHelper.setIdGenerator(options);
        for (int i = 0; i < 5; i++) {
            System.out.println(YitIdHelper.nextId());
        }
    }
}
